<?php
include("../common.inc.php");
include("function_common.php");
InitGP(array("page","action","inbox","value","payid","ids","did","delids")); //初始化变量全局返回

	$PM=new TableClass("pm","mid");
	if(!empty($_ADMINUSERS))$wherestr[]="touname='{$_ADMINUSERS['adminname']}'";//自己的短信列表
	if(!empty($wherestr)) $wheresql = implode(' AND ', $wherestr);	//条件汇总
	$pmarray=$PM->getdata(3,$wheresql); //获取短信息

	$GUESTBOOK=new TableClass("guestbook","gid");
	$guestbookarray=$GUESTBOOK->getdata(3); //获取留言数据
	
	
	$SENDORDER=new TableClass("sendorder","sid");
	$sendorderarray=$SENDORDER->getdata(4); //获取发货单数据
	
	$ADMIN=new TableClass("admin","adminid");
	$adminarray=$ADMIN->getdata(5); //获取管理员列表
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.3790.0" name=GENERATOR>
<link href="skin/skin_0/style/main.css" rel="stylesheet" type="text/css" />
<!--划动门内容CSS-->
<link href="skin/skin_0/style/HX101515261033.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
.STYLE1 {font-size: 14px}
img {border:0px}
-->
</style>
</HEAD>
<BODY></td>
              </tr>
              <tr>
                <td height="4" bgcolor="#FFFFFF"></td>
</tr>

              <tr>
                <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="1"><img src="skin/skin_0/images/b1.jpg" width="2" height="184" /></td>
                            <td valign="top" background="skin/skin_0/images/b2.jpg"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="txt12">
                                <tr>
                                  <td height="28"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td><span class="cdsearchlabel">&nbsp;站内短信</span></td>
                                        <td width="50"><a href="pm_in.php"><img src="skin/skin_0/images/more2.gif" width="42" height="13" border=0/></a></td>
                                      </tr>
                                    </table></td>
                                </tr>
                                <tr>
                                  <td height="140" valign="top"><div class="tab-page" id="div">
								  <?php foreach($pmarray as $r){?>
								  <DIV class=cntTextPane 
                              xmlns:dates="urn:rdcpro-com:dates" 
                              xmlns:bob="urn:bob">
                                      <DIV class=cntTextPaneHead><A 
                              href="pm_in.php">
                                        <?php echo $r['subject'];?> </A></DIV>
                                      <DIV 
                              class=cntTextPaneBlurb><?php echo $r['message'];?></DIV>
                                      <DIV class=cntClientline></DIV>
                                    </DIV>
									<?php };?>
									

                                  </div></td>
                                </tr>
                              </table></td>
                            <td width="1"><img src="skin/skin_0/images/b3.jpg" width="2" height="184" /></td>
                          </tr>
                        </table></td>
                      <td width="4"></td>
                      <td width="340"><table width="340" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="1"><img src="skin/skin_0/images/b1.jpg" width="2" height="184" /></td>
                            <td valign="top" background="skin/skin_0/images/b2.jpg"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="txt12">
                              <tr>
                                <td height="28"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td><span class="cdsearchlabel">&nbsp;最新留言</span></td>
                                      <td width="50"><a href="guestbook_list.php"><img src="skin/skin_0/images/more2.gif" width="42" height="13" border=0/></a></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td height="140" valign="top"><div class="tab-page" id="div2">
								
								  <?php foreach($guestbookarray as $r){?>
								  <DIV class=cntTextPane 
                              xmlns:dates="urn:rdcpro-com:dates" 
                              xmlns:bob="urn:bob">
                                      <DIV class=cntTextPaneHead><A 
                              href="guestbook_list.php">
                                        <?php echo $r['uname'];?> </A></DIV>
                                      <DIV 
                              class=cntTextPaneBlurb><?php echo $r['msg'];?></DIV>
                                      <DIV class=cntClientline></DIV>
                                  </DIV>
									<?php };?>
                                </div></td>
                              </tr>
                            </table></td>
                            <td width="1"><img src="skin/skin_0/images/b3.jpg" width="2" height="184" /></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table>
<tr>
                <td height="4" bgcolor="#FFFFFF"></td>
</tr></td>
              </tr>
            </table></td>
          <td width="240" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td height="4"></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</BODY>
</HTML>
